package com.bus;

import javax.servlet.http.HttpServletRequest;
import com.opensymphony.module.sitemesh.Decorator;
import com.opensymphony.module.sitemesh.Page;
import com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper;

public class DecoratorMapper extends AbstractDecoratorMapper {
	public Decorator getDecorator(HttpServletRequest request, Page page) {
		String layout = (String) request.getAttribute("layout");
		if(layout == null)
			layout = "default";
		return getNamedDecorator(request, layout);
	}	    
}



